#pragma once
#include "mysqlPool.h"
class mysqlMgr
{
public:
	static mysqlMgr& GetInst();
	int RegUser(const std::string& name, const std::string& email, const std::string& pwd);
	bool CheckEmail(const std::string& user, const std::string& email);
	bool UpdatePwd(const std::string& name, const std::string& pwd);
	bool CheckPwd(const std::string& user, const std::string& pwd,UserInfo& userinfo);
private:
	mysqlMgr();
	mysqlDao _dao;
};

